IF OBJECT_ID('ssf.regex_replace_singleline') IS NOT NULL
	DROP FUNCTION [ssf].[regex_replace_singleline];
GO

CREATE FUNCTION [ssf].[regex_replace_singleline](
	@input NVARCHAR(MAX)
	, @pattern NVARCHAR(MAX)
	, @replacement NVARCHAR(MAX))
RETURNS NVARCHAR(MAX)
WITH EXECUTE AS CALLER
	, RETURNS NULL ON NULL INPUT
AS
EXTERNAL NAME [UtilityRegex].[SQLServerFramework.UtilityRegex].[RegexReplaceSingleline]
GO
